package com.easylive.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: yudaxian
 * @DateTime: 2024/11/6 21:22
 **/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UploadingFileDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1913965676248386737L;

    private String uploadId;

    private String fileName;

    /**
     * 现在是第几片，从0开始
     */
    private Integer chunkIndex;

    /**
     * 总共多少片，最终是 chunkIndex + 1 才是总数量
     */
    private Integer chunks;

    private Long fileSize = 0L;

    private String filePath;
}
